﻿using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Reflection;
using System.Text;
using nwrole.Module.lib;

namespace nwrole.Module.lib
{
    public class ModuleConsoleLogger : IModuleLogger
    {
        private LogLevel _logLevel;

        public ModuleConsoleLogger(LogLevel logLevel = LogLevel.Error)
        {
            _logLevel = logLevel;
        }

        public void Log(LogLevel level, string msg)
        {
            if(level <= _logLevel)
                Console.WriteLine(level.ToString() + ": " + msg);
        }
    }
}
